export function floatNum(f, d, n) {
	let m = Math.pow(10, d);
	let num = (Math.round(f * m) * n) / m;
	return num;
}